#/bin/bash
echo -e "\033[32m Starting: \033[0m"
mkdir -p /swap
dd if=/dev/zero of=/swap/swap bs=1024 count=2048000
mkswap /swap/swap && swapon  /swap/swap
swapon -s
free -h
echo "/swap/swap swap swap default 0 0" >>/etc/fstab
echo -e "\033[32m Done. \033[0m"

